﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HFCMS.Entity;
using HFCMS.Repository.Interface;
using HFCMS.Service.Interface;

namespace HFCMS.Service.Interface
{
    public class CArticleService:ICArticleService
    {
        ICArticleRepository _CArticleRepository;
        public CArticleService(ICArticleRepository cArticleRepository)
        {
            _CArticleRepository = cArticleRepository;

        }
        public object Add(CArticle entity)
        {
            return _CArticleRepository.Insert(entity);
        }

        public int Update(CArticle entity)
        {
            throw new NotImplementedException();
        }

        public int Delete(CArticle entity)
        {
            throw new NotImplementedException();
        }
    }
}
